import request from "./request";

//获取验证码
export const get_email=(params:any)=>{
    return request({
        url:"/email",
        method:"POST",
        params
    })
}
//向后端存储邮箱和密码
export const store_email=(params:any)=>{
    return request({
        url:"/sign",
        method:"POST",
        params
    })
}

//登录
export const login=(params:any)=>{
    return request({
        url:"/login",
        method:"POST",
        params
    })
}
//患者端数据  http://localhost:3210/api/get/DrugData
export const getList=()=>{
    return request({
        url:"http://localhost:3210/api/get/DrugData",
        method:"get",
        params:{
            id:1
        }
    })
}
//修改密码modify
export const update_password=(params:any)=>{
    return request({
        url:"/modify",
        method:"POST",
        params
    })
}